import request from '@/utils/request'

// 查询raglow用户列表列表
export function listRagflowUser(query) {
  return request({
    url: '/business/ragflowUser/list',
    method: 'get',
    params: query
  })
}

// 查询raglow用户列表详细
export function getRagflowUser(id) {
  return request({
    url: '/business/ragflowUser/' + id,
    method: 'get'
  })
}

// 新增raglow用户列表
export function addRagflowUser(data) {
  return request({
    url: '/business/ragflowUser',
    method: 'post',
    data: data
  })
}

// 修改raglow用户列表
export function updateRagflowUser(data) {
  return request({
    url: '/business/ragflowUser',
    method: 'put',
    data: data
  })
}

// 删除raglow用户列表
export function delRagflowUser(id) {
  return request({
    url: '/business/ragflowUser/' + id,
    method: 'delete'
  })
}
